{:W('Template/top')}
<div class="wrapper clearfix content" style="position: relative;border: 1px solid #ddd">
    {:W('Template/left')}
    <div class="rightbox pull-right">
        <div class="ur-here">您当前的位置：<a href="#">供应商管理</a> ><a
                href="{:U('Provider/auditTourProduct',array('id'=>I('get.id')))}">产品详情</a>&gt;{$provider_info.name}
        </div>
        <div class="cTitle2">{$provider_info.name}</div>
        <div role="tabpanel">
            <div class="nav ckAct" role="tablist" id="myTab">
                <span role="presentation" class="active"><a style='cursor: pointer' aria-controls="base" role="tab"
                                                            data-toggle="tab" class="a-1"><i
                        class="i-1"></i>基本信息</a></span>
                <span role="presentation"><a style='cursor: pointer' aria-controls="detail" role="tab" data-toggle="tab"
                                             class="a-2"><i class="i-2"></i>详细行程</a></span>
                <span role="presentation"><a style='cursor: pointer' aria-controls="kzinfo" role="tab" data-toggle="tab"
                                             class="a-3"><i class="i-3"></i>扩展信息</a></span>
                <span role="presentation"><a style='cursor: pointer' aria-controls="time" role="tab" data-toggle="tab"
                                             class="a-4"><i class="i-4"></i>团期/位控</a></span>
            </div>
            <div class="tab-content">
                <div class="tableshow" role="tabpanel" id="base">
                    <table class="baseInfo-Tb table-hover">
                        <tr>
                            <th>供应商：</th>
                            <td>{$provider_info.provider_name}</td>
                        </tr>
                        <tr>
                            <th>线路名称：</th>
                            <td>{$provider_info.name}</td>
                        </tr>
                        <tr>
                            <th>线路类型：</th>
                            <td>
                                <if condition="$provider_info['line_type'] eq 1">周边游
                                    <elseif condition="$provider_info['line_type'] eq 2"/>
                                    国内游
                                    <else/>
                                    出境游
                                </if>
                            </td>
                        </tr>
                        <tr>
                            <th>出发地：</th>
                            <td>{$provider_info.departure}</td>
                        </tr>
                        <tr>
                            <th>目的地：</th>
                            <td>{$provider_info.destination}</td>
                        </tr>
                        <tr>
                            <th>途径地：</th>
                            <td>{$provider_info.destinations}</td>
                        </tr>
                        <tr>
                            <th>去程交通：</th>
                            <td>
                                <if condition="$provider_info['traffic_go'] eq '火车'">火车
                                    <elseif condition="$provider_info['traffic_go'] eq '飞机'"/>
                                    飞机
                                    <elseif condition="$provider_info['traffic_go'] eq '轮船'"/>
                                    轮船
                                    <elseif condition="$provider_info['traffic_go'] eq '巴士'"/>
                                    巴士
                                </if>
                            </td>
                        </tr>
                        <tr>
                            <th>返程交通：</th>
                            <td>
                                <if condition="$provider_info['traffic_back'] eq '火车'">火车
                                    <elseif condition="$provider_info['traffic_back'] eq '飞机'"/>
                                    飞机
                                    <elseif condition="$provider_info['traffic_back'] eq '轮船'"/>
                                    轮船
                                    <elseif condition="$provider_info['traffic_back'] eq '巴士'"/>
                                    巴士
                                </if>
                            </td>
                        </tr>
                        <tr>
                            <th>线路图片：</th>
                            <td>
                                <volist name="provider_info['imgs']" id="vo">{/* offset="0" length='5'*/}
                                    <img src="{$vo.0|GetRealImageUrl}" alt="" style='margin:5px 5px;'
                                         class="img-thumb"/>
                                </volist>
                            </td>
                        </tr>
                        <tr>
                            <th>联系人：</th>
                            <td>{$provider_info.contact_person}</td>
                        </tr>
                        <tr>
                            <th>联系电话：</th>
                            <td>{$provider_info.contact_phone}</td>
                        </tr>
                        <tr>
                            <th>参团方式：</th>
                            <td>
                                <if condition="$provider_info['travel_type'] eq 1">散拼团
                                    <elseif condition="$provider_info['travel_type'] eq 2"/>
                                    自由行
                                    <elseif condition="$provider_info['travel_type'] eq 3"/>
                                    当地游
                                </if>
                            </td>
                        </tr>

                    </table>
                </div>
                <div class="tableshow" role="tabpanel" id="detail">
                    <table class="baseInfo-Tb table-hover">
                        <volist name="provider_info['tour_plan']" id="v">
                            <tr>
                                <th colspan="2" class="num"><strong>第{$i|DayDaXie}天</strong></th>
                            </tr>
                            <tr>
                                <th>活动地区：</th>
                                <td>{$v.activity_addr}</td>
                            </tr>
                            <tr>
                                <th>交通信息：</th>
                                <td>
                                    <if condition="$v['traffic'] eq 1">火车
                                        <elseif condition="$v['traffic'] eq 2"/>
                                        飞机
                                        <elseif condition="$v['traffic'] eq 3"/>
                                        轮船
                                        <elseif condition="$v['traffic'] eq 4"/>
                                        大巴
                                    </if>
                                </td>
                            </tr>
                            <tr>
                                <th>景点及活动：</th>
                                <td>{$v.scenery}</td>
                            </tr>
                            <tr>
                                <th>行程描术：</th>
                                <td>{$v.description}</td>
                            </tr>
                            <tr>
                                <th>酒店信息：</th>
                                <td>{$v.hotel}</td>
                            </tr>
                            <tr>
                                <th>用餐信息：</th>
                                <td>
                                    <empty name="v['dining']">自理
                                        <else/>
                                        <range name="din1" value="$v['dining']" type="in">早餐&nbsp;</range>
                                        <range name="din2" value="$v['dining']" type="in">午餐&nbsp;</range>
                                        <range name="din3" value="$v['dining']" type="in">晚餐&nbsp;</range>
                                    </empty>
                                </td>
                            </tr>
                        </volist>
                    </table>
                </div>
                <div class="tableshow" role="tabpanel" id="kzinfo">
                    <table class="baseInfo-Tb table-hover">
                        <tr>
                            <th>产品特色：</th>
                            <td>{$provider_info.description}</td>
                        </tr>
                        <tr>
                            <th>注意事项：</th>
                            <td>{$provider_info.notice}</td>
                        </tr>
                        <tr>
                            <th>费用包含：</th>
                            <td>{$provider_info.fee_include}</td>
                        </tr>
                        <tr>
                            <th>费用不包含：</th>
                            <td>{$provider_info.fee_exclude}</td>
                        </tr>
                    </table>
                </div>
                <div role="tabpanel" class="tableshow" id="time">
                    <table class="cTable table-hover" width="100%">
                        <tr>
                            <th>编号</th>
                            <th>出发时间</th>
                            <th>成人零售价</th>
                            <th>成人同行价</th>
                            <th>儿童零售价</th>
                            <th>儿童同行价</th>
                            <th>可售人数</th>
                            <th>报名截止</th>
                            <th>状态</th>
                        </tr>
                        <volist name="provider_info['tour_sku']" id="vo">
                            <tr>
                                <td>{$i}</td>
                                <td>{$vo.start_time|substr=0,10}</td>
                                <if condition="$vo['cruise'] eq ''">
                                    <td class="text-c1">{$vo.price_adult_list|GetYuan}</td>
                                    <td class="text-c5">{$vo.price_adult_agency|GetYuan}</td>
                                    <else/>
                                    <td><a href="javascript:void(0)" data-toggle="tooltip" data-placement="top"
                                           title="{$vo.cruise}" class="text-c1">{$vo.price_adult_list|GetYuan}</a></td>
                                    <td><a href="javascript:void(0)" data-toggle="tooltip" data-placement="top"
                                           title="{$vo.cruise}" class="text-c5">{$vo.price_adult_agency|GetYuan}</a>
                                    </td>
                                </if>
                                <td>{$vo.price_child_list|GetYuan}</td>
                                <td>{$vo.price_child_agency|GetYuan}</td>
                                <td>{$vo.sku}</td>
                                <td>{$vo.pre_join_days}天</td>
                                <td>
                                    <if condition="$vo.state eq 1"><span style="color:blue">正常</span>
                                        <elseif condition="$vo.state eq 4"/>
                                        <span style="color:red">异常</span>
                                    </if>
                                </td>
                            </tr>
                        </volist>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
{:W('Template/bottom')}
<script>
    $(function () {
        //审核产品切换
        $('.tableshow').not(".tableshow:first").hide();
        $('.ckAct span:first').addClass('active');
        $('.ckAct span').click(function () {
            var id = $(this).index();
            $('.ckAct span').removeClass('active');
            $(this).addClass('active');
            $('.tableshow').hide();
            $('.tableshow').eq(id).show();
        });
    })


    $(function () {
        $("[data-toggle='tooltip']").tooltip();
    });
</script>
</body>
</html>